import { defineStore } from "pinia";
import { storage } from "../utils/storage";
export const enrollStore = defineStore("enroll", {
  state: () => {
    return {
      enrollInfo: storage.get("enrollInfo"),
    };
  },
  actions: {
    // 缓存用户信息数据
    setEnrollInfo(obj) {
      this.enrollInfo = obj;
      storage.set("enrollInfo", obj);
    },
  },
});
